Menu

Wiki usage

Creative Commons License
This work is licensed under a Creative Commons Attribution-Share Alike 3.0 License.
Edit Sidebar
Main > MoreDrivingSelfPropelledVehicles

Main.MoreDrivingSelfPropelledVehicles History

Show minor edits - Show changes to output

January 27, 2005, at 09:51 PM by bjarne
Changed line 48 from:
exec global/DMprecache.scr
to:
exec global/[=DMprecache=].scr
January 27, 2005, at 09:47 PM by bjarne
Added lines 1-74:
!OK so you want to get a vehicle to move around right?
OF COURSE you do! that is why you clicked on the Wiki link!

Anyway, its not that hard. And if you've tried the tut at .MAP, its got errors in it, so follow this tut. I will try to explain this in the most non-robotic way because i tend to explain things ''robotically''.

Ok, onto business. Just make a map, maybe just a road going around a cheap courtyard or centrepiece. See what i made for my vehicle:
Img:hollywood.jpg
Cool aint it?

!!10 minutes or less later:

Ok so now that you have your map we can add our triggers and vehicle. Lets put our vehicle in first. Now it doesn't work with ALL of the vehicles, so for now, just pick a GMC an Opel Truck or a halftrack. Ok now position your vehicle on the road and, with your vehicle selected, hit ''N'' and give it these key values:

||border=1
||!KEY||!VALUE||
||targetname||truck||

After you've got the angles and targetname for the truck done, we can add the TRIGGER_MULTIPLE!
Ok this is easy. just add a sign or something and put the trigger_multiple around it:

Img:trigmor.jpg

OK now give the trigger a setthread of trigger and deselect it.

Now add a spawn, some light and save the map because we are going to start the script (it doesn't matter if it is DM or SP so ill make a DM script)

----
// HOLLYWOOD SCRAP
// ARCHITECTURE: CRALOS VIALEZ
// SCRIPTING: CARLOS VIALEZ
main:
// set scoreboard messages
setcvar "g_obj_alliedtext1" "Welcome to "
setcvar "g_obj_alliedtext2" "The Hollywood"
setcvar "g_obj_alliedtext3" "Bus Circle"
setcvar "g_obj_axistext1" ""
setcvar "g_obj_axistext2" "By FUNGUS"
setcvar "g_obj_axistext3" ""
setcvar "g_scoreboardpic" "mohdm7"
// call additional stuff for playing this map round based is needed
if(level.roundbased)
thread roundbasedthread
$world farplane_color "0.458824 0.458824 0.458824"
level.fogplane = 8000
$world farplane level.fogplane
level waittill prespawn
//*** Precache Dm Stuff
exec global/DMprecache.scr
level.script = maps/dm/test_hollywood.scr
exec global/ambient.scr mohdm1
exec global/vehicle_thinkers.scr
level waittill spawn
end

roundbasedthread:
// Can specify different scoreboard messages for round based games here.
level waitTill prespawn
level waittill spawn
// set the parameters for this round based match
level.dmrespawning = 0 // 1 or 0
level.dmroundlimit = 5 // round time limit in minutes
level.clockside = kills // set to axis, allies, kills, or draw
level waittill roundstart
end

trigger:
$truck drive $t1
end
----

Ok now compile, and walk through your trigger multiple and watch your vehicle go round...
[[http://bb.1asphost.com/ilikefungus/hollywood.pk3|DOWNLOAD EXAMPLE MAP HERE]]

By: [[Profiles/ilikefungus]]

Recent Changes Printable View Page History Edit Page [Attributes] [Printable View] [WikiHelp]
Page last modified on January 27, 2005, at 09:51 PM